Optimal. Leaf size=48 \[ -\frac {2 a \cot (c+d x) \, _2F_1\left (\frac {1}{2},1-n;\frac {3}{2};1-\csc (c+d x)\right )}{d \sqrt {a+a \csc (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {3891, 67}
\begin {gather*} -\frac {2 a \cot (c+d x) \, _2F_1\left (\frac {1}{2},1-n;\frac {3}{2};1-\csc (c+d x)\right )}{d \sqrt {a \csc (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 3891
Rubi steps
\begin {align*} \int \csc ^n(c+d x) \sqrt {a+a \csc (c+d x)} \, dx &=\frac {\left (a^2 \cot (c+d x)\right ) \text {Subst}\left (\int \frac {x^{-1+n}}{\sqrt {a-a x}} \, dx,x,\csc (c+d x)\right )}{d \sqrt {a-a \csc (c+d x)} \sqrt {a+a \csc (c+d x)}}\\ &=-\frac {2 a \cot (c+d x) \, _2F_1\left (\frac {1}{2},1-n;\frac {3}{2};1-\csc (c+d x)\right )}{d \sqrt {a+a \csc (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.68, size = 48, normalized size = 1.00 \begin {gather*} -\frac {2 a \cot (c+d x) \, _2F_1\left (\frac {1}{2},1-n;\frac {3}{2};1-\csc (c+d x)\right )}{d \sqrt {a (1+\csc (c+d x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.13, size = 0, normalized size = 0.00 \[\int \left (\csc ^{n}\left (d x +c \right )\right ) \sqrt {a +a \csc \left (d x +c \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\csc {\left (c + d x \right )} + 1\right )} \csc ^{n}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \sqrt {a+\frac {a}{\sin \left (c+d\,x\right )}}\,{\left (\frac {1}{\sin \left (c+d\,x\right )}\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________